import numpy as np
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import datetime



def normal():
    x = np.linspace(-10, 10, 100)
    y = x ** 2
    plt.plot(x, y)
    plt.show()






date,open,close=np.loadtxt('../../000001.csv',delimiter=',',
                           converters={0: mdates.datestr2num('%m/%d/%Y')},skiprows=1,usecols=(0,1,4),unpack=True)


def normal1():
    plt.plot_date(date, close, 'y-')
    plt.show()


def normal2():
    plt.plot_date(date, close, 'go')
    plt.plot_date(date, close, 'r--')
    plt.show()


def normal3():
    plt.plot(date, close, color='green', linestyle='dashed', marker='o',
             markerfacecolor='blue', markersize=12)
    plt.show()





